package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.dto.SetmealDto;
import com.itheima.reggie.entity.Setmeal;

import java.util.List;

public interface SetmealService extends IService<Setmeal> {
    R saveSetmealWithDish(SetmealDto setmealDto);

    R pageWithDish(int page, int pageSize, String name);

    R deleteWithDish(List<Long> ids);

    //根据套餐id查询套餐数据,用于回显
    R<SetmealDto> getByIdWithDish(Long id);

    //修改套餐
    void updateWithDish(SetmealDto setmealDto);


    //根据套餐分类id查询该套餐分类下的套餐
    R listWithCategory(Setmeal setmeal);

}
